const api = window.$api.appadmin.auth;
export default {
  namespaced: true,
  state: {
    authInfo: {},
  },
  actions: {
    async load({ commit }) {
      const res = await api.authInfo();
      const data = res.data.data;
      commit("Set_AuthInfo", data);
    },
  },
  mutations: {
    Set_AuthInfo: (state, data) => {
      state.authInfo = data
    },
  },
};
